package com.nefu.huiyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nefu.huiyi.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Update("UPDATE user SET password = #{newPassword} WHERE id = #{userId}")
    int resetPassword(Integer userId);
}